<template>
  <div class="mod-config">
    <live-player
      src="https://domain/pull_stream"
      autoplay
      @statechange="statechange"
      @error="error"
      style="width: 300px; height: 225px;"
    />
  </div>
</template>

<script>
export default {
  name: 'Live',
  // data () {
  //   return {
  //   }
  // },
  methods: {
    statechange (e) {
      console.log('live-player code:', e.detail.code)
    },
    error (e) {
      console.error('live-player error:', e.detail.errMsg)
    }
  }
}
</script>

<style scoped>

</style>
